/** 权限判断中间件*/
const jwt = require('jsonwebtoken');
class authMiddleware {
	/** 需要用户登录*/
	async loginRequired(req, res, next) {
		//console.log(jwt.verify());
		console.log(req.query);
		//console.log(res);
		/* if (!req.session || !req.session.user || !req.session.user.id) {
			return res.redirect('/login');
		} */
		// next();
		res.error(101, '令牌无效');
	}
}

module.exports = new authMiddleware();